home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
puzzle_safari.swf
/
scripts
/
__Packages
/
Game_class.as
< prev
next >
Wrap
Text File
|
2007-01-15
|
6KB
|
157 lines
var §\x01§ = 663;
if(eval("\x01") == 663)
{
set("\x01",eval("\x01") + 19);
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!eval("\x01")["\x02"])
{
eval("\x01")["\x02"] extends eval(§§constant(12));
var _loc2_ = eval("\x01")["\x02"] = function()
{
super();
this["\x03"] = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,0]];
this["\x04"] = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,0]];
this[§§constant(4)] = new §\§\§constant(5)§();
_root[§§constant(9)][§§constant(10)](eval("\x02")[§§constant(7)] + §§constant(8),§§constant(6),5);
_root[§§constant(11)]();
}[§§constant(13)];
_loc2_[§§constant(14)] = function()
{
this[§§constant(15)] = false;
this[§§constant(16)] = this["\x04"];
this[§§constant(17)] = 0;
this[§§constant(18)] = getTimer();
this[§§constant(19)] = 0;
var _loc3_ = 0;
while(_loc3_ < this[§§constant(20)])
{
var _loc2_ = 0;
while(_loc2_ < this[§§constant(21)])
{
if(_loc3_ < this[§§constant(20)] - 1 || _loc2_ < this[§§constant(21)] - 1)
{
this[§§constant(22)](this[§§constant(16)][_loc3_][_loc2_],_loc3_,_loc2_);
}
else
{
this[§§constant(16)][_loc3_][_loc2_] = 0;
}
_loc2_ = _loc2_ + 1;
}
_loc3_ = _loc3_ + 1;
}
this[§§constant(23)]();
};
_loc2_[§§constant(22)] = function(tileNumber, row, column)
{
_root[§§constant(27)][§§constant(10)](§§constant(25) + tileNumber + §§constant(26),§§constant(24),tileNumber);
_root[§§constant(27)][§§constant(24)][§§constant(28)] = this[§§constant(29)] + column * this[§§constant(30)];
_root[§§constant(27)][§§constant(24)][§§constant(31)] = this[§§constant(32)] + row * this[§§constant(33)];
_root[§§constant(27)][§§constant(24)][§§constant(6)][§§constant(28)] = (- column) * this[§§constant(30)];
_root[§§constant(27)][§§constant(24)][§§constant(6)][§§constant(31)] = (- row) * this[§§constant(33)];
_root[§§constant(27)][§§constant(24)][§§constant(34)] = tileNumber;
_root[§§constant(27)][§§constant(24)][§§constant(35)] = row;
_root[§§constant(27)][§§constant(24)][§§constant(36)] = column;
_root[§§constant(27)][§§constant(24)][§§constant(37)] = §§constant(38) + tileNumber + §§constant(26);
};
_loc2_[§§constant(23)] = function()
{
var _loc4_ = undefined;
var _loc3_ = 0;
while(_loc3_ < 20000)
{
_loc4_ = eval(§§constant(42))[§§constant(43)](eval(§§constant(39))[§§constant(40)]() * this[§§constant(41)]);
_root[§§constant(27)][§§constant(38) + _loc4_ + §§constant(26)][§§constant(44)]();
_loc3_ = _loc3_ + 1;
}
};
_loc2_[§§constant(45)] = function()
{
var _loc4_ = undefined;
var _loc3_ = undefined;
var _loc7_ = undefined;
var _loc6_ = undefined;
if(this[§§constant(46)])
{
this[§§constant(14)]();
this[§§constant(46)] = false;
}
else if(!this[§§constant(15)])
{
this[§§constant(19)] = getTimer() - this[§§constant(18)];
_loc4_ = String(this[§§constant(19)] / 60000)[§§constant(47)](0,2);
if(_loc4_[§§constant(47)](1,2) == §§constant(48))
{
_loc4_ = 0 + _loc4_[§§constant(47)](0,1);
}
_loc3_ = String(this[§§constant(19)] / 1000 % 60)[§§constant(47)](0,2);
if(_loc3_[§§constant(47)](1,2) == §§constant(48))
{
_loc3_ = 0 + _loc3_[§§constant(47)](0,1);
}
_loc7_ = _loc4_;
_loc6_ = _loc3_;
_root[§§constant(49)][§§constant(50)](_loc7_,_loc6_);
}
else if(this[§§constant(51)] + 3000 < getTimer())
{
var _loc5_ = eval(§§constant(42))[§§constant(43)](this[§§constant(52)] - (this[§§constant(19)] / 500 + this[§§constant(17)] / 1));
if(_loc5_ < 0)
{
_loc5_ = 0;
}
this[§§constant(46)] = true;
eval(§§constant(53))[§§constant(54)] = String(_loc5_);
_root[§§constant(55)]();
}
};
_loc2_[§§constant(16)] = new §\§\§constant(56)§();
_loc2_[§§constant(46)] = true;
_loc2_[§§constant(15)] = false;
_loc2_[§§constant(51)] = 0;
_loc2_[§§constant(17)] = 0;
_loc2_[§§constant(19)] = 0;
eval("\x01")["\x02"] = function()
{
super();
this["\x03"] = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,0]];
this["\x04"] = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,0]];
this[§§constant(4)] = new §\§\§constant(5)§();
_root[§§constant(9)][§§constant(10)](eval("\x02")[§§constant(7)] + §§constant(8),§§constant(6),5);
_root[§§constant(11)]();
}[§§constant(7)] = §§constant(57);
_loc2_[§§constant(29)] = 60;
_loc2_[§§constant(32)] = 65;
_loc2_[§§constant(20)] = 4;
_loc2_[§§constant(21)] = 4;
_loc2_[§§constant(30)] = 90;
_loc2_[§§constant(33)] = 90;
_loc2_[§§constant(41)] = 15;
_loc2_[§§constant(52)] = 10000;
§§push(§§constant(58)(eval("\x01")["\x02"][§§constant(13)],null,1));
}
§§pop();
}
else if(eval("\x01") == 682)
{
set("\x01",eval("\x01") - 295);
}